
 
 F u n c t i o n :   m o v e T o ( d o m E l e m e n t O r C S S S e l e c t o r ,   o b j e c t C o n f i g ,   f u n c t i o n O v e r r i d e ) 
 
 
 
 D e s c r i p t i o n :   M o v e s   f o c u s   t o   t h e   s p e c i f i e d   e l e m e n t   u s i n g   a   s m o o t h   s c r o l l   a n i m a t i o n . 
 
 
 
 R e t u r n s :   d o m E l e m e n t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 R e q u i r e s   m o d u l e :   " S m o o t h S c r o l l " 
 
 
 
 N o t e :   T h e   o b j e c t C o n f i g   p a r a m e t e r   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   o p t i o n s   f o r   t h e   V e l o c i t y   a n i m a t i o n   e f f e c t .   T h e   f u n c t i o n O v e r r i d e   p a r a m e t e r   c a n   b e   u s e d   t o   c h a n g e   t h e   d e f a u l t   f o c u s   m o v e m e n t   s t a t e m e n t   t o   p e r f o r m   a   d i f f e r e n t   a c t i o n   i n s t e a d .   I f   a   f u n c t i o n O v e r r i d e   i s   s p e c i f i e d ,   a   s i m i l a r e   $ A . f o c u s ( t a r g e t )   s t a t e m e n t   m u s t   b e   i n c l u d e d   w i t h i n   t h e   a n i m a t i o n   c a l l b a c k   t o   e n s u r e   a c c e s s i b i l i t y   f o r   k e y b o a r d   u s e r s . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . i m p o r t ( " S m o o t h S c r o l l " ,   {   d e f e r :   t r u e   } ,   f u n c t i o n ( )   { 
 
 
 
     / /   M o v e   t o   a   t a r g e t   e l e m e n t . 
 
     $ A . m o v e T o ( d o m E l e m e n t ) ; 
 
 
 
     / /   M o v e   t o   a   t a r g e t   e l e m e n t   a n d   c h a n g e   t h e   a n i m a t i o n   c o n f i g u r a t i o n   o p t i o n s . 
 
     $ A . m o v e T o ( d o m E l e m e n t ,   { 
 
         d u r a t i o n :   7 5 0 , 
 
         e a s i n g :   " e a s e - i n " 
 
     } ) ; 
 
 
 
 } ) ; 
 
 